home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / dsniff < prev    next >
Encoding:
Text File  |  2010-11-16  |  4.0 KB  |  257 lines

  1. # dsniff util completion
  2.  
  3. have arpspoof &&
  4. _arpspoof()
  5. {
  6.     local cur prev
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur prev
  10.  
  11.     case $prev in
  12.         -i)
  13.             _available_interfaces
  14.             return 0
  15.             ;;
  16.         -t)
  17.             _known_hosts_real "$cur"
  18.             return 0
  19.             ;;
  20.     esac
  21.  
  22.     if [[ "$cur" == -* ]]; then
  23.         COMPREPLY=( $( compgen -W '-i -t' -- "$cur" ) )
  24.     else
  25.         _known_hosts_real "$cur"
  26.     fi
  27.  
  28. } &&
  29. complete -F _arpspoof arpspoof
  30.  
  31. have dnsspoof &&
  32. _dnsspoof()
  33. {
  34.     local cur prev
  35.  
  36.     COMPREPLY=()
  37.     _get_comp_words_by_ref cur prev
  38.  
  39.     case $prev in
  40.         -i)
  41.             _interfaces
  42.             return 0
  43.             ;;
  44.         -f)
  45.             _filedir
  46.             return 0
  47.             ;;
  48.     esac
  49.  
  50.     if [[ "$cur" == -* ]]; then
  51.         COMPREPLY=( $( compgen -W '-i -f' -- "$cur" ) )
  52.     fi
  53.  
  54. } &&
  55. complete -F _dnsspoof dnsspoof
  56.  
  57. have dsniff &&
  58. _dsniff()
  59. {
  60.     local cur prev
  61.  
  62.     COMPREPLY=()
  63.     _get_comp_words_by_ref cur prev
  64.  
  65.     case $prev in
  66.         -r|-w|-f)
  67.             _filedir
  68.             return 0
  69.             ;;
  70.         -i)
  71.             _interfaces
  72.             return 0
  73.             ;;
  74.     esac
  75.  
  76.     if [[ "$cur" == -* ]]; then
  77.         COMPREPLY=( $( compgen -W '-c -d -m -n -i -s -f -t -r -w' -- "$cur" ) )
  78.     fi
  79.  
  80. } &&
  81. complete -F _dsniff dsniff
  82.  
  83. have filesnarf || have mailsnarf || have msgsnarf &&
  84. _snarf()
  85. {
  86.     local cur prev
  87.  
  88.     COMPREPLY=()
  89.     _get_comp_words_by_ref cur prev
  90.  
  91.     case $prev in
  92.         -i)
  93.             _interfaces
  94.             return 0
  95.             ;;
  96.     esac
  97.  
  98.     if [[ "$cur" == -* ]]; then
  99.         COMPREPLY=( $( compgen -W '-i -v' -- "$cur" ) )
  100.     fi
  101.  
  102. } &&
  103. complete -F _snarf filesnarf mailsnarf msgsnarf
  104.  
  105. have macof &&
  106. _macof()
  107. {
  108.     local cur prev
  109.  
  110.     COMPREPLY=()
  111.     _get_comp_words_by_ref cur prev
  112.  
  113.     case $prev in
  114.         -i)
  115.             _interfaces
  116.             return 0
  117.             ;;
  118.     esac
  119.  
  120.  
  121.     if [[ "$cur" == -* ]]; then
  122.         COMPREPLY=( $( compgen -W '-i -s -d -e -x -y -n' -- "$cur" ) )
  123.     fi
  124.  
  125. } &&
  126. complete -F _macof macof
  127.  
  128. have sshmitm &&
  129. _sshmitm()
  130. {
  131.     local cur
  132.  
  133.     COMPREPLY=()
  134.     _get_comp_words_by_ref cur
  135.  
  136.     if [[ "$cur" == -* ]]; then
  137.         COMPREPLY=( $( compgen -W '-d -I -p' -- "$cur" ) )
  138.     else
  139.         _known_hosts_real "$cur"
  140.     fi
  141.  
  142. } &&
  143. complete -F _sshmitm sshmitm
  144.  
  145. have sshow &&
  146. _sshow()
  147. {
  148.     local cur prev
  149.  
  150.     COMPREPLY=()
  151.     _get_comp_words_by_ref cur prev
  152.  
  153.     case $prev in
  154.         -i)
  155.             _interfaces
  156.             return 0
  157.             ;;
  158.     esac
  159.  
  160.     if [[ "$cur" == -* ]]; then
  161.         COMPREPLY=( $( compgen -W '-d -i' -- "$cur" ) )
  162.     fi
  163.  
  164. } &&
  165. complete -F _sshow sshow
  166.  
  167. have tcpkill &&
  168. _tcpkill()
  169. {
  170.     local cur prev
  171.  
  172.     COMPREPLY=()
  173.     _get_comp_words_by_ref cur prev
  174.  
  175.     case $prev in
  176.         -i)
  177.             _interfaces
  178.             return 0
  179.             ;;
  180.     esac
  181.  
  182.     if [[ "$cur" == -* ]]; then
  183.         COMPREPLY=( $( compgen -W '-i -1 -2 -3 -4 -5 -6 -7 -8 -9' -- "$cur" ) )
  184.     fi
  185.  
  186. } &&
  187. complete -F _tcpkill tcpkill
  188.  
  189. have tcpnice &&
  190. _tcpnice()
  191. {
  192.     local cur prev
  193.  
  194.     COMPREPLY=()
  195.     _get_comp_words_by_ref cur prev
  196.  
  197.     case $prev in
  198.         -i)
  199.             _interfaces
  200.             return 0
  201.             ;;
  202.     esac
  203.  
  204.     if [[ "$cur" == -* ]]; then
  205.         COMPREPLY=( $( compgen -W '-A -I -M -i' -- "$cur" ) )
  206.     fi
  207.  
  208. } &&
  209. complete -F _tcpnice tcpnice
  210.  
  211. have urlsnarf &&
  212. _urlsnarf()
  213. {
  214.     local cur prev
  215.  
  216.     COMPREPLY=()
  217.     _get_comp_words_by_ref cur prev
  218.  
  219.     case $prev in
  220.         -i)
  221.             _interfaces
  222.             return 0
  223.             ;;
  224.     esac
  225.  
  226.     if [[ "$cur" == -* ]]; then
  227.         COMPREPLY=( $( compgen -W '-n -i -v' -- "$cur" ) )
  228.     fi
  229.  
  230. } &&
  231. complete -F _urlsnarf urlsnarf
  232.  
  233. have webmitm &&
  234. _webmitm()
  235. {
  236.     local cur
  237.  
  238.     COMPREPLY=()
  239.     _get_comp_words_by_ref cur
  240.  
  241.     if [[ "$cur" == -* ]]; then
  242.         COMPREPLY=( $( compgen -W '-d' -- "$cur" ) )
  243.     else
  244.         _known_hosts_real "$cur"
  245.     fi
  246.  
  247. } &&
  248. complete -F _webmitm webmitm
  249.  
  250. # Local variables:
  251. # mode: shell-script
  252. # sh-basic-offset: 4
  253. # sh-indent-comment: t
  254. # indent-tabs-mode: nil
  255. # End:
  256. # ex: ts=4 sw=4 et filetype=sh
  257.